from PySide6.QtWidgets import QMainWindow,QLabel
from views.home.home import Ui_home
from views.person.other.otherView import OtherView
from views.person.personbase.personBaseView import PersonBaseInfoView
from views.person.assessment.assessmentView import AssessmentView
from views.person.work.jobinfoView import JobInfoView
from views.learningexperience.learningexperienceView import LearningExperienceView
from views.salary.position.position.positionView import PositionView
from views.salary.salaryscale.salaryscaleView import SalaryscaleView
from views.salary.setreform2006.setreform2006View import Setreform2006View,SetfromStatistics2006View
from views.furtherstudy.furtherstudyView import FurtherStudyView
from views.web.webbase.webbaseView import WebBaseView
from views.web.webuser.webuserView import WebUserView
from views.book.books.booksView import BooksView
from views.book.author.authorView import AuthorView
from views.book.category.categoryView import CategoryView
from views.book.publisher.publisherView import PublisherView
from views.schoolInfo.schoolinfoView import SchoolInfoView
from settings.initsetting.initsettingView import InitSettingView
from views.insurance.student.studentinsuranceView import StudenInsturance
from views.insurance.school.schoolinsturanceView import SchoolInsurance

from views.publicfunds.publicfundslistView import PublicFundsList
from views.bankcarkinfo.bankcardinfoView import BankcardinfoView

class HomeView(QMainWindow,Ui_home):
    def __init__(self):
        super().__init__()
        self.setupUi(self)

        self.statusbar.addWidget(QLabel('  本程序由胡荣江独立开发，版权归胡荣江所有！'))

    '''
    放入的函数是菜单指向的函数
    '''

    # 人事信息
    # 人员基本信息
    def personBaseInfo(self):
        self.setCentralWidget(PersonBaseInfoView())

        # 人员拓展信息
    def otherWidget(self):
        self.setCentralWidget(OtherView())

        # 学习经历
    def learningexperienceWidget(self):
        self.setCentralWidget(LearningExperienceView())

        # 进修情况
    def furtherstudyWidget(self):
        self.setCentralWidget(FurtherStudyView())

        # 考核信息
    def assessmentWidget(self):
        self.setCentralWidget(AssessmentView())

    # 工资
    # 岗位情况
    def positionWidget(self):
        self.setCentralWidget(PositionView())

    # 薪级情况
    def salaryScaleWidget(self):
        self.setCentralWidget(SalaryscaleView())

    # 2006年套改情况
    def setreform2006Widget(self):
        self.setCentralWidget(Setreform2006View())

    # 2006年套改标准
    def setreformStandard2006Widget(self):
        self.setCentralWidget(SetfromStatistics2006View())

    def publicfundsfun(self):
        self.setCentralWidget(SetfromStatistics2006View())

    # 网页的基本信息
    def webbaseFun(self):
        self.setCentralWidget(WebBaseView())

    # 网页用户信息
    def webuserFun(self):
        self.setCentralWidget(WebUserView())

    # 工作信息
    def jobinfoFun(self):
        self.setCentralWidget(JobInfoView())

    # 图书信息
    # 作者信息
    def authorWidget(self):
        self.setCentralWidget(AuthorView())

    # 图书详细信息
    def booksWidget(self):
        self.setCentralWidget(BooksView())

    # 图书分类信息
    def categoryWidget(self):
        self.setCentralWidget(CategoryView())

    # 出版社信息
    def publisherWidget(self):
        self.setCentralWidget(PublisherView())

    # 学校信息
    def schoolInfoWidget(self):
        self.setCentralWidget(SchoolInfoView())

    # 初始化信息
    def initsettingWidget(self):
        InitSettingView().exec()

    # 学平险
    def studentinsuranceWidget(self):
        self.setCentralWidget(StudenInsturance())


    # 学校综合防范险
    def schoolinsuranceWidget(self):
        self.setCentralWidget(SchoolInsurance())